package com.trex.modules.tbl.lineform.entity;

import javax.validation.constraints.Size;
import java.util.Date;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 站修线倒车通知单Entity
 * @author jy
 * @version 2023-02-04
 */
@Table(name="tbl_xd_zxxdctzd", alias="a", label="站修线倒车通知单信息", extWhereKeys="extWhere", columns={
		@Column(name="rec_id", attrName="recId", label="rec_id", isPK=true),
		@Column(name="tzdbh", attrName="tzdbh", label="倒车通知单编号", isQuery=false),
		@Column(name="jxcbh", attrName="jxcbh", label="检修车编号", isQuery=false),
		@Column(name="status", attrName="status", label="标识 0未确认 1列检调度确认 2车站调度确认", isQuery=false),
		@Column(name="wagonno", attrName="wagonno", label="车号", isQuery=false),
		@Column(name="device_no", attrName="deviceNo", label="设备号", isQuery=false),
		@Column(name="dqczbh", attrName="dqczbh", label="当前车站编号"),
		@Column(name="dqczmc", attrName="dqczmc", label="当前车站名称", isQuery=false),
		@Column(name="dqcdbh", attrName="dqcdbh", label="当前场地编号", isQuery=false),
		@Column(name="dqcdmc", attrName="dqcdmc", label="当前场地名称", isQuery=false),
		@Column(name="dqxlbh", attrName="dqxlbh", label="当前线路编号", isQuery=false),
		@Column(name="dqxlmc", attrName="dqxlmc", label="当前线路名称", isQuery=false),
		@Column(name="wagon_group_code", attrName="wagonGroupCode", label="车组编号", isQuery=false),
		@Column(name="wagon_group_name", attrName="wagonGroupName", label="车组名称", isQuery=false),
		@Column(name="is_out_stage", attrName="isOutStage", label="是否出场", isQuery=false),
		@Column(name="dest", attrName="dest", label="去向", isQuery=false),
		@Column(name="dest_name", attrName="destName", label="去向中文", isQuery=false),
		@Column(name="is_nopeak", attrName="isNopeak", label="是否禁峰 0否1是", isQuery=false),
		@Column(name="cczk", attrName="cczk", label="出场状况", isQuery=false),
		@Column(name="zxzz", attrName="zxzz", label="专项整治", isQuery=false),
		@Column(name="zxdd", attrName="zxdd", label="转场地点", isQuery=false),
		@Column(name="remark", attrName="remark", label="备注", isQuery=false),
		@Column(name="ljdd_usercode", attrName="ljddUsercode", label="列检调度编号", isQuery=false),
		@Column(name="ljdd_username", attrName="ljddUsername", label="列检调度名称", isQuery=false),
		@Column(name="ljdd_confirm_time", attrName="ljddConfirmTime", label="列检调度确认时间", isQuery=false, isUpdateForce=true),
		@Column(name="czdd_usercode", attrName="czddUsercode", label="车站调度编号", isQuery=false),
		@Column(name="czdd_username", attrName="czddUsername", label="车站调度名称", isQuery=false),
		@Column(name="czdd_confirm_time", attrName="czddConfirmTime", label="车站调度确认时间", isQuery=false, isUpdateForce=true),
		@Column(name="dele_flag", attrName="deleFlag", label="删除标志位", isQuery=false),
		@Column(name="user_code", attrName="userCode", label="更新人", isQuery=false),
		@Column(name="user_name", attrName="userName", label="更新人", isQuery=false),
		@Column(name="upd_time", attrName="updTime", label="更新时间", isQuery=false, isUpdateForce=true),
		@Column(name="ip", attrName="ip", label="IP地址", isQuery=false),
		@Column(name="is_out_stage_name", attrName="isOutStageName", label="是否出场中文", isQuery=false),
		@Column(name="add_time", attrName="addTime", label="添加时间", isQuery=false, isUpdateForce=true),
		@Column(name="csbh", attrName="csbh", label="发起人场所编号", isQuery=false),
		@Column(name="zxdd", attrName="ZXDD", label="转场地点", isQuery=false),
		@Column(name="zxdd_name", attrName="zxddName", label="转场地点", isQuery=false),
		@Column(name="seq", attrName="seq", label="车序", isQuery=false),
		@Column(name="vehicleRepairStatus", attrName="vehicleRepairStatus", label="修", isQuery=false),

	}, orderBy="a.ADD_TIME  DESC"
)
public class TblXdZxxdctzd extends DataEntity<TblXdZxxdctzd> {
	
	private static final long serialVersionUID = 1L;
	private String recId;		// rec_id
	private String tzdbh;		// 倒车通知单编号
	private String jxcbh;		// 检修车编号
	private String wagonno;		// 车号
	private String deviceNo;		// 设备号
	private String dqczbh;		// 当前车站编号
	private String dqczmc;		// 当前车站名称
	private String dqcdbh;		// 当前场地编号
	private String dqcdmc;		// 当前场地名称
	private String dqxlbh;		// 当前线路编号
	private String dqxlmc;		// 当前线路名称
	private String wagonGroupCode;		// 车组编号
	private String wagonGroupName;		// 车组名称
	private String isOutStage;		// 是否出场
	private String dest;		// 去向
	private String destName;		// 去向中文
	private String isNopeak;		// 是否禁峰 0否1是
	private String cczk;		// 出场状况
	private String zxzz;		// 专项整治
	private String remark;		// 备注
	private String ljddUsercode;		// 列检调度编号
	private String ljddUsername;		// 列检调度名称
	private Date ljddConfirmTime;		// 列检调度确认时间
	private String czddUsercode;		// 车站调度编号
	private String czddUsername;		// 车站调度名称
	private Date czddConfirmTime;		// 车站调度确认时间
	private String deleFlag;		// 删除标志位
	private String userCode;		// 更新人
	private String userName;		// 更新人
	private Date updTime;		// 更新时间
	private String ip;		// IP地址
	private String isOutStageName;		// 是否出场中文
	private Date addTime;		// 添加时间
	private String csbh;		// 发起人场所编号
	private String faultCode;		// 故障编号
	private String faultName;// 故障名称
	private String userid;
	private String postid;
	private String line;
	private String lineCode;
	private String stationName;
	private String stationCode;
	private String dqcsbh;
	private String XLBH;
	private String XLMC;
	private String ZXDD;
	private String zxddName;
	private String seq;
	private String vehicleRepairStatus;
	private int qrCOUNT;

	private String ids;

	private Date startTime;
	private Date endTime;


	public int getQrCOUNT() {
		return qrCOUNT;
	}

	public void setQrCOUNT(int qrCOUNT) {
		this.qrCOUNT = qrCOUNT;
	}

	public String getVehicleRepairStatus() {
		return vehicleRepairStatus;
	}

	public void setVehicleRepairStatus(String vehicleRepairStatus) {
		this.vehicleRepairStatus = vehicleRepairStatus;
	}

	public String getZxddName() {
		return zxddName;
	}

	public void setZxddName(String zxddName) {
		this.zxddName = zxddName;
	}

	public String getZXDD() {
		return ZXDD;
	}

	public void setZXDD(String ZXDD) {
		this.ZXDD = ZXDD;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	public String getXLBH() {
		return XLBH;
	}

	public void setXLBH(String XLBH) {
		this.XLBH = XLBH;
	}

	public String getDqcsbh() {
		return dqcsbh;
	}

	public void setDqcsbh(String dqcsbh) {
		this.dqcsbh = dqcsbh;
	}

	public String getXLMC() {
		return XLMC;
	}

	public void setXLMC(String XLMC) {
		this.XLMC = XLMC;
	}

	public String getStationName() {
		return stationName;
	}

	public void setStationName(String stationName) {
		this.stationName = stationName;
	}

	public String getStationCode() {
		return stationCode;
	}

	public void setStationCode(String stationCode) {
		this.stationCode = stationCode;
	}

	public String getLine() {
		return line;
	}

	public void setLine(String line) {
		this.line = line;
	}

	public String getLineCode() {
		return lineCode;
	}

	public void setLineCode(String lineCode) {
		this.lineCode = lineCode;
	}

	public String getFaultCode() {
		return faultCode;
	}

	public void setFaultCode(String faultCode) {
		this.faultCode = faultCode;
	}

	public String getFaultName() {
		return faultName;
	}

	public void setFaultName(String faultName) {
		this.faultName = faultName;
	}

	public TblXdZxxdctzd() {
		this(null);
	}
	
	public TblXdZxxdctzd(String id){
		super(id);
	}
	
	public String getRecId() {
		return recId;
	}

	public void setRecId(String recId) {
		this.recId = recId;
	}
	
//	@Size(min=0, max=20, message="倒车通知单编号长度不能超过 20 个字符")
	public String getTzdbh() {
		return tzdbh;
	}

	public void setTzdbh(String tzdbh) {
		this.tzdbh = tzdbh;
	}
	
//	@Size(min=0, max=20, message="检修车编号长度不能超过 20 个字符")
	public String getJxcbh() {
		return jxcbh;
	}

	public void setJxcbh(String jxcbh) {
		this.jxcbh = jxcbh;
	}
	
//	@Size(min=0, max=10, message="车号长度不能超过 10 个字符")
	public String getWagonno() {
		return wagonno;
	}

	public void setWagonno(String wagonno) {
		this.wagonno = wagonno;
	}
	
//	@Size(min=0, max=10, message="设备号长度不能超过 10 个字符")
	public String getDeviceNo() {
		return deviceNo;
	}

	public void setDeviceNo(String deviceNo) {
		this.deviceNo = deviceNo;
	}
	
//	@Size(min=0, max=2, message="当前车站编号长度不能超过 2 个字符")
	public String getDqczbh() {
		return dqczbh;
	}

	public void setDqczbh(String dqczbh) {
		this.dqczbh = dqczbh;
	}
	
//	@Size(min=0, max=50, message="当前车站名称长度不能超过 50 个字符")
	public String getDqczmc() {
		return dqczmc;
	}

	public void setDqczmc(String dqczmc) {
		this.dqczmc = dqczmc;
	}
	
//	@Size(min=0, max=6, message="当前场地编号长度不能超过 6 个字符")
	public String getDqcdbh() {
		return dqcdbh;
	}

	public void setDqcdbh(String dqcdbh) {
		this.dqcdbh = dqcdbh;
	}
	
//	@Size(min=0, max=50, message="当前场地名称长度不能超过 50 个字符")
	public String getDqcdmc() {
		return dqcdmc;
	}

	public void setDqcdmc(String dqcdmc) {
		this.dqcdmc = dqcdmc;
	}
	
//	@Size(min=0, max=20, message="当前线路编号长度不能超过 20 个字符")
	public String getDqxlbh() {
		return dqxlbh;
	}

	public void setDqxlbh(String dqxlbh) {
		this.dqxlbh = dqxlbh;
	}
	
//	@Size(min=0, max=50, message="当前线路名称长度不能超过 50 个字符")
	public String getDqxlmc() {
		return dqxlmc;
	}

	public void setDqxlmc(String dqxlmc) {
		this.dqxlmc = dqxlmc;
	}
	
//	@Size(min=0, max=2, message="车组编号长度不能超过 2 个字符")
	public String getWagonGroupCode() {
		return wagonGroupCode;
	}

	public void setWagonGroupCode(String wagonGroupCode) {
		this.wagonGroupCode = wagonGroupCode;
	}
	
//	@Size(min=0, max=20, message="车组名称长度不能超过 20 个字符")
	public String getWagonGroupName() {
		return wagonGroupName;
	}

	public void setWagonGroupName(String wagonGroupName) {
		this.wagonGroupName = wagonGroupName;
	}
	
//	@Size(min=0, max=10, message="是否出场长度不能超过 10 个字符")
	public String getIsOutStage() {
		return isOutStage;
	}

	public void setIsOutStage(String isOutStage) {
		this.isOutStage = isOutStage;
	}
	
//	@Size(min=0, max=10, message="去向长度不能超过 10 个字符")
	public String getDest() {
		return dest;
	}

	public void setDest(String dest) {
		this.dest = dest;
	}
	
//	@Size(min=0, max=50, message="去向中文长度不能超过 50 个字符")
	public String getDestName() {
		return destName;
	}

	public void setDestName(String destName) {
		this.destName = destName;
	}
	
//	@Size(min=0, max=2, message="是否禁峰 0否1是长度不能超过 2 个字符")
	public String getIsNopeak() {
		return isNopeak;
	}

	public void setIsNopeak(String isNopeak) {
		this.isNopeak = isNopeak;
	}
	
//	@Size(min=0, max=20, message="出场状况长度不能超过 20 个字符")
	public String getCczk() {
		return cczk;
	}

	public void setCczk(String cczk) {
		this.cczk = cczk;
	}
	
//	@Size(min=0, max=20, message="专项整治长度不能超过 20 个字符")
	public String getZxzz() {
		return zxzz;
	}

	public void setZxzz(String zxzz) {
		this.zxzz = zxzz;
	}
	
//	@Size(min=0, max=400, message="备注长度不能超过 400 个字符")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
//	@Size(min=0, max=10, message="列检调度编号长度不能超过 10 个字符")
	public String getLjddUsercode() {
		return ljddUsercode;
	}

	public void setLjddUsercode(String ljddUsercode) {
		this.ljddUsercode = ljddUsercode;
	}
	
//	@Size(min=0, max=20, message="列检调度名称长度不能超过 20 个字符")
	public String getLjddUsername() {
		return ljddUsername;
	}

	public void setLjddUsername(String ljddUsername) {
		this.ljddUsername = ljddUsername;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getLjddConfirmTime() {
		return ljddConfirmTime;
	}

	public void setLjddConfirmTime(Date ljddConfirmTime) {
		this.ljddConfirmTime = ljddConfirmTime;
	}
	
//	@Size(min=0, max=10, message="车站调度编号长度不能超过 10 个字符")
	public String getCzddUsercode() {
		return czddUsercode;
	}

	public void setCzddUsercode(String czddUsercode) {
		this.czddUsercode = czddUsercode;
	}
	
//	@Size(min=0, max=20, message="车站调度名称长度不能超过 20 个字符")
	public String getCzddUsername() {
		return czddUsername;
	}

	public void setCzddUsername(String czddUsername) {
		this.czddUsername = czddUsername;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCzddConfirmTime() {
		return czddConfirmTime;
	}

	public void setCzddConfirmTime(Date czddConfirmTime) {
		this.czddConfirmTime = czddConfirmTime;
	}
	
//	@Size(min=0, max=1, message="删除标志位长度不能超过 1 个字符")
	public String getDeleFlag() {
		return deleFlag;
	}

	public void setDeleFlag(String deleFlag) {
		this.deleFlag = deleFlag;
	}
	
//	@Size(min=0, max=10, message="更新人长度不能超过 10 个字符")
	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	
//	@Size(min=0, max=20, message="更新人长度不能超过 20 个字符")
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdTime() {
		return updTime;
	}

	public void setUpdTime(Date updTime) {
		this.updTime = updTime;
	}
	
//	@Size(min=0, max=15, message="IP地址长度不能超过 15 个字符")
	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}
	
//	@Size(min=0, max=50, message="是否出场中文长度不能超过 50 个字符")
	public String getIsOutStageName() {
		return isOutStageName;
	}

	public void setIsOutStageName(String isOutStageName) {
		this.isOutStageName = isOutStageName;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}
	
//	@Size(min=0, max=6, message="发起人场所编号长度不能超过 6 个字符")
	public String getCsbh() {
		return csbh;
	}

	public void setCsbh(String csbh) {
		this.csbh = csbh;
	}
	
	// 大于等于 <=
	public Date getAddTime_gte(){
		return sqlMap.getWhere().getValue("add_time", QueryType.GTE);
	}

	public void setAddTime_gte(Date addTime){
		sqlMap.getWhere().and("add_time", QueryType.GTE, addTime);
	}

	// 小于等于 <=
	public Date getAddTime_lte(){
		return sqlMap.getWhere().getValue("add_time", QueryType.LTE);
	}

	public void setAddTime_lte(Date addTime){
		sqlMap.getWhere().and("add_time", QueryType.LTE, addTime);
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getPostid() {
		return postid;
	}

	public void setPostid(String postid) {
		this.postid = postid;
	}

	public String getSeq() {
		return seq;
	}

	public void setSeq(String seq) {
		this.seq = seq;
	}
}